package com.newcapec.lesson3;


public class Demo2 {
    public static void main(String[] args) {
      Person person1 = new Person(20, "张三", "男", "2020-11-11");
      Person person2 = new Person(20, "张三", "男", "2020-11-11");
      System.out.println(person1 == person2);
      System.out.println(person1.equals(person2));
      System.out.println(person1.hashCode());
      System.out.println(person2.hashCode());
    }
}
